.class public Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;
.super Landroid/widget/BaseExpandableListAdapter;
.source "SideNavCategoryAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;
    }
.end annotation


# static fields
.field public static SECTION_APP_PROMOTE:Ljava/lang/String;

.field public static SECTION_CATEGORY:Ljava/lang/String;

.field public static SECTION_DATA:Ljava/lang/String;

.field public static SECTION_RATE:Ljava/lang/String;

.field public static SECTION_TITLE:Ljava/lang/String;

.field public static SECTION_ZUIMEI_APP:Ljava/lang/String;


# instance fields
.field private mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

.field private mDataSet:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mOnCategorySelected:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;

.field private mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 57
    const-string v0, "SectionTitle"

    sput-object v0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    .line 58
    const-string v0, "SectionCategory"

    sput-object v0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_CATEGORY:Ljava/lang/String;

    .line 59
    const-string v0, "SectionZuimeiApp"

    sput-object v0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_ZUIMEI_APP:Ljava/lang/String;

    .line 60
    const-string v0, "SectionAppPromote"

    sput-object v0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_APP_PROMOTE:Ljava/lang/String;

    .line 61
    const-string v0, "SectionRateApp"

    sput-object v0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_RATE:Ljava/lang/String;

    .line 63
    const-string v0, "SectionData"

    sput-object v0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;Ljava/util/ArrayList;Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;)V
    .registers 6
    .param p1, "activity"    # Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    .param p3, "onCategorySelected"    # Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;",
            "Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;",
            ")V"
        }
    .end annotation

    .prologue
    .local p2, "dataSet":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    const/4 v1, 0x1

    .line 66
    invoke-direct {p0}, Landroid/widget/BaseExpandableListAdapter;-><init>()V

    .line 67
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    .line 68
    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    .line 70
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    .line 71
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 72
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 74
    iput-object p3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mOnCategorySelected:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;

    .line 75
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Ljava/util/List;Lcom/brixd/niceapp/model/CategoryModel;)V
    .registers 3
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;
    .param p1, "x1"    # Ljava/util/List;
    .param p2, "x2"    # Lcom/brixd/niceapp/model/CategoryModel;

    .prologue
    .line 47
    invoke-direct {p0, p1, p2}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->gotoCategoryFragment(Ljava/util/List;Lcom/brixd/niceapp/model/CategoryModel;)V

    return-void
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/CategoryAppModel;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;
    .param p1, "x1"    # Lcom/brixd/niceapp/model/CategoryAppModel;

    .prologue
    .line 47
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->gotoDetailActivity(Lcom/brixd/niceapp/model/CategoryAppModel;)V

    return-void
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    .prologue
    .line 47
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;
    .param p1, "x1"    # Lcom/brixd/niceapp/model/AppRecommendModel;

    .prologue
    .line 47
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->directDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V

    return-void
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;
    .param p1, "x1"    # Lcom/brixd/niceapp/model/AppRecommendModel;

    .prologue
    .line 47
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->appStoreDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V

    return-void
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    .prologue
    .line 47
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->openAppStore()V

    return-void
.end method

.method private appStoreDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V
    .registers 10
    .param p1, "appRecommendModel"    # Lcom/brixd/niceapp/model/AppRecommendModel;

    .prologue
    const/4 v7, 0x0

    .line 394
    new-instance v0, Landroid/content/Intent;

    const-string v5, "android.intent.action.VIEW"

    invoke-direct {v0, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 395
    .local v0, "appIntent":Landroid/content/Intent;
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "market://details?id="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p1, Lcom/brixd/niceapp/model/AppRecommendModel;->packageName:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 397
    invoke-static {}, Lcom/brixd/niceapp/util/SettingUtils;->parseAppStoreOpenOrderModel()Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;

    move-result-object v2

    .line 399
    .local v2, "appStoreOpenOrderModel":Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;
    if-eqz v2, :cond_36

    iget-object v5, v2, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->appStoreModels:Ljava/util/List;

    if-eqz v5, :cond_36

    iget-object v5, v2, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->appStoreModels:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->isEmpty()Z

    move-result v5

    if-eqz v5, :cond_47

    .line 400
    :cond_36
    invoke-virtual {v0, v7}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 401
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v5, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v5

    if-eqz v5, :cond_47

    .line 402
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v5, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    .line 428
    :cond_46
    :goto_46
    return-void

    .line 408
    :cond_47
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_48
    :try_start_48
    iget-object v5, v2, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->appStoreModels:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    if-ge v3, v5, :cond_78

    .line 409
    iget-object v5, v2, Lcom/brixd/niceapp/model/AppStoreOpenOrderModel;->appStoreModels:Ljava/util/List;

    invoke-interface {v5, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/model/AppStoreModel;

    .line 410
    .local v1, "appStoreModel":Lcom/brixd/niceapp/model/AppStoreModel;
    iget-object v4, v1, Lcom/brixd/niceapp/model/AppStoreModel;->packageName:Ljava/lang/String;

    .line 411
    .local v4, "storePkgName":Ljava/lang/String;
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v5, v4}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_75

    .line 412
    invoke-virtual {v0, v4}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 413
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v5, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v5

    if-eqz v5, :cond_75

    .line 414
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v5, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_46

    .line 425
    .end local v1    # "appStoreModel":Lcom/brixd/niceapp/model/AppStoreModel;
    .end local v4    # "storePkgName":Ljava/lang/String;
    :catch_73
    move-exception v5

    goto :goto_46

    .line 408
    .restart local v1    # "appStoreModel":Lcom/brixd/niceapp/model/AppStoreModel;
    .restart local v4    # "storePkgName":Ljava/lang/String;
    :cond_75
    add-int/lit8 v3, v3, 0x1

    goto :goto_48

    .line 420
    .end local v1    # "appStoreModel":Lcom/brixd/niceapp/model/AppStoreModel;
    .end local v4    # "storePkgName":Ljava/lang/String;
    :cond_78
    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 421
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v5, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v5

    if-eqz v5, :cond_46

    .line 422
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v5, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_89
    .catch Ljava/lang/Throwable; {:try_start_48 .. :try_end_89} :catch_73

    goto :goto_46
.end method

.method private directDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V
    .registers 7
    .param p1, "appRecommendModel"    # Lcom/brixd/niceapp/model/AppRecommendModel;

    .prologue
    const/4 v4, 0x1

    .line 360
    new-instance v1, Landroid/app/AlertDialog$Builder;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-direct {v1, v2}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\u9a6c\u4e0a\u5c1d\u9c9c\u300c"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p1, Lcom/brixd/niceapp/model/AppRecommendModel;->title:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\u300d\uff1f"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0c005d

    invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0c003a

    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$9;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$9;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    .line 361
    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0c0051

    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;

    invoke-direct {v3, p0, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$8;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V

    .line 367
    invoke-virtual {v1, v2, v3}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v1

    .line 387
    invoke-virtual {v1}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    .line 388
    .local v0, "alertDialog":Landroid/app/Dialog;
    invoke-virtual {v0, v4}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 389
    invoke-virtual {v0, v4}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 390
    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 391
    return-void
.end method

.method private generateCategoryView()Landroid/view/View;
    .registers 6

    .prologue
    .line 216
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const v3, 0x7f030076

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 218
    .local v0, "view":Landroid/view/View;
    new-instance v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    .line 219
    .local v1, "viewHolder":Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;
    iget-object v3, v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    const/4 v4, 0x0

    const v2, 0x7f0a01a4

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v4

    .line 220
    iget-object v3, v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    const/4 v4, 0x1

    const v2, 0x7f0a01a5

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v4

    .line 221
    iget-object v3, v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    const/4 v4, 0x2

    const v2, 0x7f0a01a6

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v4

    .line 222
    iget-object v3, v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    const/4 v4, 0x3

    const v2, 0x7f0a01a7

    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    aput-object v2, v3, v4

    .line 223
    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 225
    return-object v0
.end method

.method private getAppPromView(ILandroid/view/View;Ljava/util/HashMap;)Landroid/view/View;
    .registers 10
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/view/View;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Landroid/view/View;"
        }
    .end annotation

    .prologue
    .line 319
    .local p3, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    invoke-virtual {p3, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/AppRecommendModel;

    .line 321
    .local v0, "appRecommendModel":Lcom/brixd/niceapp/model/AppRecommendModel;
    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const v4, 0x7f030075

    const/4 v5, 0x0

    invoke-static {v3, v4, v5}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 323
    const v3, 0x7f0a01a2

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 324
    .local v1, "imageView":Landroid/widget/ImageView;
    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v4, v0, Lcom/brixd/niceapp/model/AppRecommendModel;->coverUrl:Ljava/lang/String;

    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v3, v4, v1, v5}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 326
    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;

    invoke-direct {v3, p0, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 344
    const v3, 0x7f0a01a3

    invoke-virtual {p2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    .line 345
    .local v2, "whyBtn":Landroid/widget/Button;
    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$7;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$7;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 356
    return-object p2
.end method

.method private getRateZuimeiAppView(ILandroid/view/View;ZLjava/util/HashMap;)Landroid/view/View;
    .registers 10
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "isLastChild"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/view/View;",
            "Z",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Landroid/view/View;"
        }
    .end annotation

    .prologue
    .line 431
    .local p4, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const v3, 0x7f030078

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 433
    const v2, 0x7f0a01b1

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 434
    .local v1, "rateGoodBtn":Landroid/widget/Button;
    const v2, 0x7f0a01b0

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 436
    .local v0, "rateBadBtn":Landroid/widget/Button;
    new-instance v2, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$10;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$10;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 445
    new-instance v2, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$11;

    invoke-direct {v2, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$11;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 454
    return-object p2
.end method

.method private getZuimeiAppView(ILandroid/view/View;ZLjava/util/HashMap;)Landroid/view/View;
    .registers 13
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "isLastChild"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/view/View;",
            "Z",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Landroid/view/View;"
        }
    .end annotation

    .prologue
    .line 262
    .local p4, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    invoke-virtual {p4, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/brixd/niceapp/model/CategoryModel;

    .line 263
    .local v2, "categoryModel":Lcom/brixd/niceapp/model/CategoryModel;
    iget-object v5, v2, Lcom/brixd/niceapp/model/CategoryModel;->categoryAppModels:Ljava/util/List;

    mul-int/lit8 v6, p1, 0x2

    invoke-interface {v5, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/CategoryAppModel;

    .line 264
    .local v0, "categoryAppModel1":Lcom/brixd/niceapp/model/CategoryAppModel;
    const/4 v1, 0x0

    .line 266
    .local v1, "categoryAppModel2":Lcom/brixd/niceapp/model/CategoryAppModel;
    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const v6, 0x7f03007a

    const/4 v7, 0x0

    invoke-static {v5, v6, v7}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 267
    const v5, 0x7f0a01b3

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/Button;

    .line 268
    .local v3, "zuimeiApp1Btn":Landroid/widget/Button;
    const v5, 0x7f0a01b4

    invoke-virtual {p2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/Button;

    .line 270
    .local v4, "zuimeiApp2Btn":Landroid/widget/Button;
    invoke-virtual {v3, v0}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    .line 272
    iget-object v5, v2, Lcom/brixd/niceapp/model/CategoryModel;->categoryAppModels:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    rem-int/lit8 v5, v5, 0x2

    const/4 v6, 0x1

    if-ne v5, v6, :cond_60

    if-eqz p3, :cond_60

    .line 273
    const/4 v5, 0x4

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 280
    :goto_43
    iget-object v5, v0, Lcom/brixd/niceapp/model/CategoryAppModel;->appName:Ljava/lang/String;

    invoke-virtual {v3, v5}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 281
    if-nez v1, :cond_74

    const-string v5, ""

    :goto_4c
    invoke-virtual {v4, v5}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 283
    new-instance v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$4;

    invoke-direct {v5, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$4;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {v3, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 292
    new-instance v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$5;

    invoke-direct {v5, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$5;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 301
    return-object p2

    .line 275
    :cond_60
    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 276
    iget-object v5, v2, Lcom/brixd/niceapp/model/CategoryModel;->categoryAppModels:Ljava/util/List;

    mul-int/lit8 v6, p1, 0x2

    add-int/lit8 v6, v6, 0x1

    invoke-interface {v5, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    .end local v1    # "categoryAppModel2":Lcom/brixd/niceapp/model/CategoryAppModel;
    check-cast v1, Lcom/brixd/niceapp/model/CategoryAppModel;

    .line 277
    .restart local v1    # "categoryAppModel2":Lcom/brixd/niceapp/model/CategoryAppModel;
    invoke-virtual {v4, v1}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    goto :goto_43

    .line 281
    :cond_74
    iget-object v5, v1, Lcom/brixd/niceapp/model/CategoryAppModel;->appName:Ljava/lang/String;

    goto :goto_4c
.end method

.method private gotoCategoryFragment(Ljava/util/List;Lcom/brixd/niceapp/model/CategoryModel;)V
    .registers 7
    .param p2, "model"    # Lcom/brixd/niceapp/model/CategoryModel;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/CategoryModel;",
            ">;",
            "Lcom/brixd/niceapp/model/CategoryModel;",
            ")V"
        }
    .end annotation

    .prologue
    .line 249
    .local p1, "mCategoryList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->isFinishing()Z

    move-result v1

    if-nez v1, :cond_1a

    .line 250
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const-string v2, "ClickSideMenuCategory"

    iget-object v3, p2, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    invoke-static {v1, v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 252
    invoke-interface {p1, p2}, Ljava/util/List;->indexOf(Ljava/lang/Object;)I

    move-result v0

    .line 253
    .local v0, "pos":I
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mOnCategorySelected:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;

    invoke-interface {v1, v0, p2}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;->onSelected(ILjava/lang/Object;)V

    .line 255
    .end local v0    # "pos":I
    :cond_1a
    return-void
.end method

.method private gotoDetailActivity(Lcom/brixd/niceapp/model/CategoryAppModel;)V
    .registers 7
    .param p1, "categoryAppModel"    # Lcom/brixd/niceapp/model/CategoryAppModel;

    .prologue
    .line 305
    if-nez p1, :cond_3

    .line 316
    :cond_2
    :goto_2
    return-void

    .line 308
    :cond_3
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const-string v2, "ClickSideMenuZuimeiApp"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p1, Lcom/brixd/niceapp/model/CategoryAppModel;->appName:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 310
    new-instance v0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;-><init>(Landroid/content/Context;)V

    .line 311
    .local v0, "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    iget-object v1, p1, Lcom/brixd/niceapp/model/CategoryAppModel;->type:Ljava/lang/String;

    const-string v2, "zuimei.daily"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_36

    .line 312
    iget v1, p1, Lcom/brixd/niceapp/model/CategoryAppModel;->appId:I

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoNiceDailyDetail(I)V

    goto :goto_2

    .line 313
    :cond_36
    iget-object v1, p1, Lcom/brixd/niceapp/model/CategoryAppModel;->type:Ljava/lang/String;

    const-string v2, "zuimei.community"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 314
    iget v1, p1, Lcom/brixd/niceapp/model/CategoryAppModel;->appId:I

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoCommunityDetail(I)V

    goto :goto_2
.end method

.method private initCategoryView(Ljava/util/List;Ljava/util/List;Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;)V
    .registers 9
    .param p3, "holder"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/CategoryModel;",
            ">;",
            "Ljava/util/List",
            "<",
            "Lcom/brixd/niceapp/model/CategoryModel;",
            ">;",
            "Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;",
            ")V"
        }
    .end annotation

    .prologue
    .local p1, "mCategoryList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    .local p2, "categoryList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    const/4 v4, 0x4

    .line 229
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    if-ge v1, v4, :cond_41

    .line 230
    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-gt v1, v2, :cond_39

    .line 231
    invoke-interface {p2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/CategoryModel;

    .line 232
    .local v0, "categoryModel":Lcom/brixd/niceapp/model/CategoryModel;
    iget-object v2, p3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    aget-object v2, v2, v1

    iget-object v3, v0, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 233
    iget-object v2, p3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    aget-object v2, v2, v1

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 234
    iget-object v2, p3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    aget-object v2, v2, v1

    invoke-virtual {v2, v0}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    .line 235
    iget-object v2, p3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    aget-object v2, v2, v1

    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$3;

    invoke-direct {v3, p0, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$3;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Ljava/util/List;)V

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 229
    .end local v0    # "categoryModel":Lcom/brixd/niceapp/model/CategoryModel;
    :goto_36
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 243
    :cond_39
    iget-object v2, p3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;->categoryButtons:[Landroid/widget/Button;

    aget-object v2, v2, v1

    invoke-virtual {v2, v4}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_36

    .line 246
    :cond_41
    return-void
.end method

.method private openAppStore()V
    .registers 5

    .prologue
    .line 458
    new-instance v0, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 459
    .local v0, "appIntent":Landroid/content/Intent;
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "market://details?id="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->getPackageName(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 461
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const-string v3, "UMENG_CHANNEL"

    invoke-static {v2, v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->getAppMetaData(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/zuiapps/suite/utils/app/AppStoreUtil;->getPackageNameByChannel(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 463
    .local v1, "storePackageName":Ljava/lang/String;
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_c8

    .line 464
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v1}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_c8

    .line 465
    const-string v2, "com.meizu.mstore"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7c

    .line 466
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "mstore:http://app.meizu.com/phone/apps/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->getPackageName(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 467
    const-string v2, "com.meizu.mstore"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 468
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_c8

    .line 469
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    .line 539
    :cond_7b
    :goto_7b
    return-void

    .line 472
    :cond_7c
    const-string v2, "com.amazon.venezia"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_b7

    .line 473
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "amzn://apps/android?p="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->getPackageName(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 474
    const-string v2, "com.amazon.venezia"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 475
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_c8

    .line 476
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_7b

    .line 480
    :cond_b7
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 481
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_c8

    .line 482
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_7b

    .line 489
    :cond_c8
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->isMeizu()Z

    move-result v2

    if-eqz v2, :cond_102

    .line 490
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "mstore:http://app.meizu.com/phone/apps/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->getPackageName(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 491
    const-string v2, "com.meizu.mstore"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 492
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_102

    .line 493
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_7b

    .line 499
    :cond_102
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->isMiui(Landroid/content/Context;)Z

    move-result v2

    if-eqz v2, :cond_11e

    .line 500
    const-string v2, "com.xiaomi.market"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 501
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_11e

    .line 502
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_7b

    .line 508
    :cond_11e
    :try_start_11e
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const-string v3, "com.xiaomi.market"

    invoke-static {v2, v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_13f

    .line 509
    const-string v2, "com.xiaomi.market"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 510
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_13f

    .line 511
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_7b

    .line 536
    :catch_13c
    move-exception v2

    goto/16 :goto_7b

    .line 515
    :cond_13f
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const-string v3, "com.wandoujia.phoenix2"

    invoke-static {v2, v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_15d

    .line 516
    const-string v2, "com.wandoujia.phoenix2"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 517
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_15d

    .line 518
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_7b

    .line 522
    :cond_15d
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const-string v3, "com.tencent.android.qqdownloader"

    invoke-static {v2, v3}, Lcom/zuiapps/suite/utils/app/AppUtil;->isAppInstalled(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_17b

    .line 523
    const-string v2, "com.tencent.android.qqdownloader"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 524
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_17b

    .line 525
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V

    goto/16 :goto_7b

    .line 530
    :cond_17b
    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

    .line 531
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-static {v2, v0}, Lcom/zuiapps/suite/utils/intent/IntentUtil;->isIntentAvailable(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_7b

    .line 532
    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_18c
    .catch Ljava/lang/Throwable; {:try_start_11e .. :try_end_18c} :catch_13c

    goto/16 :goto_7b
.end method


# virtual methods
.method public getCategoryView(ILandroid/view/View;Ljava/util/HashMap;)Landroid/view/View;
    .registers 10
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Landroid/view/View;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Landroid/view/View;"
        }
    .end annotation

    .prologue
    .line 186
    .local p3, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    invoke-virtual {p3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    .line 187
    .local v3, "mCategoryList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->generateCategoryView()Landroid/view/View;

    move-result-object p2

    .line 189
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;

    .line 191
    .local v1, "holder":Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 192
    .local v0, "cList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    add-int/lit8 v4, p1, 0x1

    mul-int/lit8 v4, v4, 0x4

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v5

    if-le v4, v5, :cond_33

    .line 193
    mul-int/lit8 v2, p1, 0x4

    .local v2, "i":I
    :goto_23
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v4

    if-ge v2, v4, :cond_5d

    .line 194
    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 193
    add-int/lit8 v2, v2, 0x1

    goto :goto_23

    .line 197
    .end local v2    # "i":I
    :cond_33
    mul-int/lit8 v4, p1, 0x4

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 198
    mul-int/lit8 v4, p1, 0x4

    add-int/lit8 v4, v4, 0x1

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 199
    mul-int/lit8 v4, p1, 0x4

    add-int/lit8 v4, v4, 0x2

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 200
    mul-int/lit8 v4, p1, 0x4

    add-int/lit8 v4, v4, 0x3

    invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 203
    :cond_5d
    invoke-direct {p0, v3, v0, v1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->initCategoryView(Ljava/util/List;Ljava/util/List;Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$CategoryViewHolder;)V

    .line 205
    new-instance v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$2;

    invoke-direct {v4, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$2;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {p2, v4}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 212
    return-object p2
.end method

.method public getChild(II)Ljava/lang/Object;
    .registers 5
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 114
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    .line 115
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    return-object v1
.end method

.method public getChildId(II)J
    .registers 5
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 125
    int-to-long v0, p2

    return-wide v0
.end method

.method public getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 10
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I
    .param p3, "isLastChild"    # Z
    .param p4, "convertView"    # Landroid/view/View;
    .param p5, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 164
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    .line 166
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_CATEGORY:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1b

    .line 167
    invoke-virtual {p0, p2, p4, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->getCategoryView(ILandroid/view/View;Ljava/util/HashMap;)Landroid/view/View;

    move-result-object v1

    .line 176
    :goto_1a
    return-object v1

    .line 168
    :cond_1b
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_ZUIMEI_APP:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2e

    .line 169
    invoke-direct {p0, p2, p4, p3, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->getZuimeiAppView(ILandroid/view/View;ZLjava/util/HashMap;)Landroid/view/View;

    move-result-object v1

    goto :goto_1a

    .line 170
    :cond_2e
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_APP_PROMOTE:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_41

    .line 171
    invoke-direct {p0, p2, p4, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->getAppPromView(ILandroid/view/View;Ljava/util/HashMap;)Landroid/view/View;

    move-result-object v1

    goto :goto_1a

    .line 172
    :cond_41
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_RATE:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_54

    .line 173
    invoke-direct {p0, p2, p4, p3, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->getRateZuimeiAppView(ILandroid/view/View;ZLjava/util/HashMap;)Landroid/view/View;

    move-result-object v1

    goto :goto_1a

    .line 176
    :cond_54
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const v2, 0x7f030079

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    goto :goto_1a
.end method

.method public getChildrenCount(I)I
    .registers 10
    .param p1, "groupPosition"    # I

    .prologue
    const/4 v3, 0x1

    .line 88
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    invoke-virtual {v4, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/HashMap;

    .line 90
    .local v2, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    sget-object v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_CATEGORY:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_2d

    .line 92
    sget-object v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 93
    .local v0, "categoryList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    int-to-double v4, v3

    const-wide/high16 v6, 0x4010000000000000L

    div-double/2addr v4, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v4

    double-to-int v3, v4

    .line 103
    .end local v0    # "categoryList":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryModel;>;"
    :cond_2c
    :goto_2c
    return v3

    .line 94
    :cond_2d
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    sget-object v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_ZUIMEI_APP:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_53

    .line 95
    sget-object v3, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_DATA:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/model/CategoryModel;

    .line 96
    .local v1, "categoryModel":Lcom/brixd/niceapp/model/CategoryModel;
    iget-object v3, v1, Lcom/brixd/niceapp/model/CategoryModel;->categoryAppModels:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    int-to-double v4, v3

    const-wide/high16 v6, 0x4000000000000000L

    div-double/2addr v4, v6

    invoke-static {v4, v5}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v4

    double-to-int v3, v4

    goto :goto_2c

    .line 97
    .end local v1    # "categoryModel":Lcom/brixd/niceapp/model/CategoryModel;
    :cond_53
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    sget-object v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_APP_PROMOTE:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_2c

    .line 99
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    sget-object v5, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_RATE:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_2c

    .line 103
    const/4 v3, 0x0

    goto :goto_2c
.end method

.method public getGroup(I)Ljava/lang/Object;
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 108
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    invoke-virtual {v1, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    .line 109
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v1, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    return-object v1
.end method

.method public getGroupCount()I
    .registers 2

    .prologue
    .line 83
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getGroupId(I)J
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 120
    int-to-long v0, p1

    return-wide v0
.end method

.method public getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 12
    .param p1, "groupPosition"    # I
    .param p2, "isExpanded"    # Z
    .param p3, "convertView"    # Landroid/view/View;
    .param p4, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 135
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    const v5, 0x7f030079

    const/4 v6, 0x0

    invoke-static {v4, v5, v6}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 136
    .local v3, "view":Landroid/view/View;
    const v4, 0x7f0a01b2

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 138
    .local v2, "titleText":Landroid/widget/TextView;
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    invoke-virtual {v4, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    .line 139
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_TITLE:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 141
    .local v1, "titleKey":Ljava/lang/String;
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_CATEGORY:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3a

    .line 142
    const v4, 0x7f0c000e

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    .line 151
    :cond_31
    :goto_31
    new-instance v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$1;

    invoke-direct {v4, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$1;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)V

    invoke-virtual {v3, v4}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 159
    return-object v3

    .line 143
    :cond_3a
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_ZUIMEI_APP:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_49

    .line 144
    const v4, 0x7f0c0155

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_31

    .line 145
    :cond_49
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_APP_PROMOTE:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_58

    .line 146
    const v4, 0x7f0c0012

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_31

    .line 147
    :cond_58
    sget-object v4, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->SECTION_RATE:Ljava/lang/String;

    invoke-virtual {v1, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_31

    .line 148
    const v4, 0x7f0c00cd

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(I)V

    goto :goto_31
.end method

.method public hasStableIds()Z
    .registers 2

    .prologue
    .line 130
    const/4 v0, 0x0

    return v0
.end method

.method public isChildSelectable(II)Z
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 181
    const/4 v0, 0x0

    return v0
.end method

.method public setDataSet(Ljava/util/ArrayList;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 78
    .local p1, "dataSet":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mDataSet:Ljava/util/ArrayList;

    .line 79
    return-void
.end method
